<script setup lang="ts">
	import {ref} from 'vue'
	const arr= ref([1,2,3])
	function add(){
		arr.value.push(4)
	}
</script>
<template>
	<div v-for="item in arr">
		{{ item }}
	</div>
	<el-button @click="add">add</el-button>
</template>